{% extends "stuBase.html" %}

{% block head %}
<link rel="stylesheet" href="../static/css/examInfo.css">
{% endblock %}

{% block content %}
<div class="container">

    <div class="exam-list mt-5">
        {% for exam in exam_list %}
        <!--TODO 修改考试表，考试时间和报名时间-->
        <div class="exam-item mb-3 p-3">
            <h3>{{exam[0].name}}</h3>
            <div class="exam-time-info">
                <span class="exam-time-item">
                    <img src="https://csp.ccf.org.cn/csp/static/web-images/icon-clock.png">
                    报名时间：
                    <font>{{ exam[0].sign_time}}</font>
                </span>
                <span class="exam-time-item">
                    <img src="https://csp.ccf.org.cn/csp/static/web-images/icon-clock.png">
                    考试时间：
                    <font>{{ exam[0].do_time}}</font>
                </span>
            </div>
            <div class="register-btn">
                {% if exam[1]==1%}
                <a href="#" class="btn btn-dark btn-md disabled">已报名</a>
                {% else %}
                <a href={{url_for("exam.infoConfirm",exam_id=exam[0].id)}} class="btn btn-primary btn-md">报名</a>
                {%endif%}
            </div>
        </div>
        {% endfor %}

    </div>
</div>
<!--增加查看更多-->
<div class="container text-center mt-5">
    <a href="#" class="btn btn-primary">查看更多</a>
</div>
{% endblock%}